package com.xz.knowledgeDuplication.pattern.adapter.object_adapter;

import com.xz.knowledgeDuplication.pattern.adapter.class_adapter.SDCard;
import com.xz.knowledgeDuplication.pattern.adapter.class_adapter.TFCard;
import lombok.AllArgsConstructor;

/**
 * SD卡适配TF卡(适配器)
 *
 * @author 召
 * @date 2022-03-12 21:29:49
 */
@AllArgsConstructor
public class SDObjectAdapterTF implements SDCard {

    private TFCard tfCard;

    @Override
    public String readSD() {
        return tfCard.readTF();
    }

    @Override
    public void writeSD(String string) {
        tfCard.writeTF(string);
    }
}
